import Taro from '@tarojs/taro'
import _Fetch from '@/server/Fetch'
import { API_GET_TEST_RESULT } from '@/api/evaluation/get_test_result'
import { API_POST_COMMENT_LIST } from '@/api/evaluation/get_comment_list'
import { API_POST_ADD_COMMENT } from '@/api/evaluation/add_comment'
import { API_GET_ORDER_RESULT } from '@/api/evaluation/get_order_result'
export async function get_test_result_api(params: any) {
  return await _Fetch(API_GET_TEST_RESULT, params)
}
export async function get_comment_list_api(id: number, pageNum: number, pageSize: number) {
  return await _Fetch(API_POST_COMMENT_LIST, {
    questionNameId: id,
    pageNum,
    pageSize,
  })
}
export async function submit_comment(params) {
  return await _Fetch(API_POST_ADD_COMMENT, {
    ...params,
  })
}
export async function get_order_result_api(userQuestionId) {
  return await _Fetch(API_GET_ORDER_RESULT, {
    userQuestionId,
  })
}
